package model;

/**
 * Created with IntelliJ IDEA.
 * User: nuno-rafael-figueiredo
 * Date: 04-03-2014
 * Time: 17:38
 */
public abstract class KeyEntity<Key, Item extends IItem<Key>> extends Entity<Key, Item> {

    protected KeyEntity(Class<Item[]> arrayClass, Class<Item> itemClass) {
        super(arrayClass, itemClass);
    }

    @Override
    protected final Key getKey(Item item) {
        return item.getKey();
    }
}
